﻿using System;
using System.IO;
using NUnit.Framework;

namespace com.bodurov.CameraToJpegFiles.Tests
{
    [TestFixture]
    [Ignore]
    public class Misc_Tests
    {
        [Test]
        [Ignore]
        public void RenameImages()
        {
            const string FROM_FOLDER = @"C:\Source\DotNet\com.bodurov.CameraToJpegFiles\com.bodurov.CameraToJpegFilesUI\files\";
            const string TO_FOLDER = @"C:\Source\DotNet\com.bodurov.LaserVision\com.bodurov.LaserVisionTests\images\testset2\";

            var i = 0;
            foreach(var file in Directory.GetFiles(FROM_FOLDER))
            {

                File.Copy(file, TO_FOLDER + i.ToString().PadLeft(3, '0')+".jpg");
                i++;
            }
        }
    }
}
